/*
 * Copyright (c) 2017,重庆阿莫比科技有限公司,All Rights Reserved.
 */
package com.wowocai.btchina.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * <br/>
 * Date: 2017年3月17日 上午11:05:25 <br/>
 * 
 * @Author 刘建成
 * @Version
 */
public class EsSearchResultEntity implements Serializable {

    /**
     */
    private static final long serialVersionUID = 8935852616468949942L;

    public boolean success = false;

    public long total = 0;

    public long current = 0;

    public List<String> json = null;

    /**
     * Creates a new instance of EsSearchResultEntity.
     */
    public EsSearchResultEntity() {
        json = new ArrayList<String>(10);
    }

    /**
     * 初始结果列表大小
     * 
     * @param initSize
     */
    public EsSearchResultEntity(int initSize) {
        json = new ArrayList<String>(initSize);
    }

    /**
     * success.
     * 
     * @return the success
     */

    public boolean isSuccess() {
        return success;
    }

    /**
     * success.
     * 
     * @param success the success to set
     */

    public void setSuccess(boolean success) {
        this.success = success;
    }

    /**
     * total.
     * 
     * @return the total
     */

    public long getTotal() {
        return total;
    }

    /**
     * total.
     * 
     * @param total the total to set
     */

    public void setTotal(long total) {
        this.total = total;
    }

    /**
     * json.
     * 
     * @return the json
     */

    public List<String> getJson() {
        return json;
    }

    /**
     * json.
     * 
     * @param json the json to set
     */

    public void setJson(List<String> json) {
        this.json = json;
    }

    /**
     * 添加结果
     * <br/>
     * 
     * @author 刘建成
     * @param json
     */
    public void add(String json) {
        this.json.add(json);
    }

    /**
     * current.
     * 
     * @return the current
     */

    public long getCurrent() {
        return current;
    }

    /**
     * current.
     * 
     * @param current the current to set
     */

    public void setCurrent(long current) {
        this.current = current;
    }
}
